<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c"       uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="huatek"  uri="http://www.huatek.com/j2ee" %>
<form id="entityForm_${efwSourceEntity.id}" name="form_${efwSourceEntity.id}" method="post">
<fieldset>
<legend>查询条件</legend>
<div class="condition_left">
<table width="60%" border="1" cellspacing="0" cellpadding="0" >
	<tr>
		<td width="10%" align="right"><c:out value="${efwSourceEntity.outputName}"></c:out>：</td>
		<td width="15%"><input type="text" value="<c:out value="${queryValue}"/>" name="ht_t.${efwSourceEntity.outputField}" id="ht_t_${efwSourceEntity.outputField}" /></td>
		<td width="10%" align="right">已选择：</td>
		<td width="5%"><input type="checkbox" value="1" name="queryChecked" id="queryChecked" <c:if test="${queryChecked}">checked="true"</c:if> /></td>
	   <td height="25" align="center" width="5%">
	        <input type="button" value="查询" class="seaBtn" onclick="queryData()"/>
	    </td>
	    <td height="25" width="5%"></td>
    </tr>
</table>
</div>
<div class="clear"></div>
</fieldset>

<div class="widget" style="margin-top:10px;">
<div class="head"><h5 class="iFrames"><c:out value="${efwSourceEntity.entityName}"></c:out></h5>
<div  id="changePage"  align="right">
<huatek:ajaxCutPage pageBean="${pageBean}" formName="form_${efwSourceEntity.id}" isOuterForm="true" offerPageSize="20,50,100" isExistForm="true" queryFunction="queryData()"/>
</div>
</div>
<div id="tableBody09">
<table width="98.5%" border="1" cellspacing="0" cellpadding="0">
    <thead>
	<tr>
		<th width="40">&nbsp;</th>
		<th><c:out value="${efwSourceEntity.outputName}"></c:out></th>
	</tr>
	</thead>
	<tbody>
	<c:forEach var="dictionary" items="${pageBean.dataList}" varStatus="s">
	<tr <c:if test="${!(s.index%2==0) }"> class="tdbgcolor"</c:if>>
		<td>
		 <input type="checkbox" value="${dictionary.id}" <c:if test="${dictionary.checked}">checked="true"</c:if> name="id" onclick="assignData(${businessModuleId},this,'${entityId}','${dictionary.code}')">
		</td>
		<td><c:out value="${dictionary.name}"/></td>
	</c:forEach>
	</tbody>
</table>
</div>
</div>
</form>
<script language="javascript">
<!--
function queryData(){
	queryEntity('${businessModuleId}','${entityId}');
}
//-->
</script>